<%--
  Created by IntelliJ IDEA.
  User: zyh
  Date: 2021/11/18
  Time: 20:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
      integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
        integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <form action="${ctx}/emp/updaEmp" method="post">
                <input type="hidden" name="eno" value="${Emp.eno}">
                <div class="form-group">
                    <label for="exampleInputEmail1">用户名</label>
                    <input type="text" class="form-control" name="ename" value="${Emp.ename}" id="exampleInputEmail1" placeholder="Email">
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">密码</label>
                    <input type="password" class="form-control" name="pwd" value="${Emp.pwd}" id="exampleInputPassword1" placeholder="Password">
                </div>
                <div class="form-group">

                <c:if test="${Emp.esex=='男'}">
                    <label for="blankRadio1">性别</label>
                    <label class="radio-inline">
                    <input type="radio" name="esex" id="blankRadio1" value="男" checked>男
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="esex" id="blankRadio2" value="女">女
                    </label>
                </c:if>
                <c:if test="${Emp.esex=='女'}">
                    <label for="blankRadio3">性别</label>
                    <label class="radio-inline">
                        <input type="radio" name="esex" id="blankRadio3" value="男" >男
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="esex" id="blankRadio4" value="女"checked>女
                    </label>
                </c:if>
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail2">工资</label>
                    <input type="text" class="form-control" value="${Emp.salary}" name="salary" id="exampleInputEmail2" placeholder="Email">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail3">组号</label>
                    <input type="text" class="form-control" value="${Emp.dno}" name="dno" id="exampleInputEmail3" placeholder="Email">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail4">出生日期</label>
                    <input type="date" class="form-control" value="<fm:formatDate value='${Emp.date}' pattern='yyyy-mm-dd'/>" name="date" id="exampleInputEmail4" placeholder="Email">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail5">手机号</label>
                    <input type="text" class="form-control" value="${Emp.phone}" name="phone" id="exampleInputEmail5" placeholder="Email">
                </div>
                <button type="submit" class="btn btn-default">Submit</button>
            </form>
        </div>
    </div>
</div>
</body>
</html>
